//
//  RJOutCityView.h
//  AirQuality
//
//  Created by Po on 15/7/3.
//  Copyright (c) 2015年 Po. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol RJOutCityViewDelegate <NSObject>

/**选取菜单时触发*/
- (void)didSelectedRow:(NSUInteger)rowNumber data:(NSDictionary *)data;

@optional
/**显示和隐藏时触发*/
- (void)didPressCityBar:(BOOL)isShow;

@end

@interface RJOutCityView : UIView

@property (retain, nonatomic)UIButton * cityBar;
@property (assign, nonatomic)NSUInteger currentRow;           //当前选中行
@property (retain, nonatomic)UIImageView *image;

@property (assign, nonatomic)id<RJOutCityViewDelegate> delegate;
/**设置数据*/
- (void)setData:(NSArray *)data;

/**模拟点击*/
- (void)simulationPressCityWithRow:(NSUInteger)row;

/**设置展示隐藏*/
- (void)setViewFrame:(BOOL)isShow;

/**获取城市数组*/
- (NSArray *)getCitys;

- (instancetype)initWithFrame:(CGRect)frame isShowTitle:(BOOL)title;

@end
